  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
        <div class="widget-box">
          <div class="widget-title"> <span class="icon"><i class="icon-th"></i></span>
            <h5>角色数据</h5>
            <?php if($admin['admin_type']!=0){?>
            <a  class="label label-info"  style="cursor:pointer" href="index.php?c=global&a=getbyid&sid=<?php echo $sid ?>"  id='searchBtn'>添加角色</a>
            <?php }?>
          </div>
          <div class="widget-content nopadding">
            <table class="table table-bordered data-table">
              <thead>
                <tr>
                  <th>帐号</th>
                  <th>平台</th>
                  <th>类型</th>
                  <th>登录次数</th>
                  <th>最后登陆时间</th>
                  <th>最后登陆IP</th>
                  <th width=80>操作</th>
                </tr>
              </thead>
              <tbody>
                <?php 
                if(!empty($page_data)) foreach($page_data as $item){?>
                <tr class="gradeU">
                  <td><?php echo $item['admin_name']?></td>
                  <td><?php echo $platform_list[$item['platform']]?></td>
                  <td><?php if($item['admin_type'] == 1){echo '<span class="date badge badge-important">超级牛人</span>';}elseif($item['admin_type'] == 2){echo '<span class="date badge badge-important">管理员</span>';}else{echo '<span class="date badge badge-info">普通管理员</span>';}?></td>
					<td><?php echo $item['admin_login_times'];?></td>
					<td><?php echo $item['admin_last_time'];?></td>
					<td><?php echo $item['admin_last_ip'];?></td>
					<td>
				       <a class="btn btn-primary btn-mini"   href="index.php?c=global&a=getbyid&sid=<?php echo $sid ?>&admin_id=<?php echo $item['admin_id']?>">编辑</a> 
				       <a class="btn btn-danger btn-mini"  onclick="return confirm('确定要删除吗?');" href="index.php?c=global&a=deladmin&sid=<?php echo $sid ?>&admin_id=<?php echo $item['admin_id']?>">删除</a> 
					</td>
                </tr>
                <?php }?>
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
  </div>


